package com.itheima.deque;

/**
 * 双端队列接口
 *
 * @FileName Deque
 * @Description
 * @Author Sword
 * @date 2025-05-09
 **/
public interface Deque<E> {

    /*
        queue

        deque   double ended
     */

    boolean offerFirst(E e);

    boolean offerLast(E e);

    E pollFirst();

    E pollLast();

    E peekFirst();

    E peekLast();

    boolean isEmpty();

    boolean isFull();
}
